import request from '@/utils/request'
export function getDepartmentList() {
  return request({
    method: 'get',
    url: '/company/department'
  })
}
export function delDepartment(id) {
  return request({
    method: 'DELETE',
    url: '/company/department/' + id
  })
}
export function getManagerList(id) {
  return request({
    method: 'GET',
    url: '/sys/user/simple'

  })
}
export function addDepartment(data) {
  return request({
    method: 'POST',
    url: '/company/department/',
    data
  })
}
export function editDepartment(data) {
  return request({
    method: 'PUT',
    url: '/company/department/' + data.id,
    data
  })
}
